Package com.cisco.pt.ipc.sim.impl
Class RoutingProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.RoutingProcessImpl
- All Implemented Interfaces:
IPCObject,Process,RoutingProcess
- Direct Known Subclasses:
RoutingProcessv6Impl
Information provided by the PKI file:
\class RoutingProcess
\brief RoutingProcess handles and manipulates the static routing.
\example network().getDevice("Router0").getProcess("RoutingProcess")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionRoutingProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddStaticRoute(IPAddress ipAddress, IPAddress subnetMask, IPAddress nextHop, String portName, int adminDistance) Information provided by the PKI file:voidInformation provided by the PKI file:voidclearRoute(IPAddress networkId, IPAddress mask) Information provided by the PKI file:Information provided by the PKI file:getStaticRouteAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:booleanremoveStaticRoute(IPAddress ipAddress, IPAddress subnetMask, IPAddress nextHop, String portName, int adminDistance) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
RoutingProcessImpl
public RoutingProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
clearAllRoutes
public void clearAllRoutes()Information provided by the PKI file:
\brief Clears all routes.- Specified by:
clearAllRoutesin interfaceRoutingProcess
-
clearRoute
Information provided by the PKI file:
\brief Clears the specified route. \param networkId, the network address of interest. \param mask, the network mask of interest.- Specified by:
clearRoutein interfaceRoutingProcess- Parameters:
networkId- Takes in a parameter of networkIdmask- Takes in a parameter of mask
-
addStaticRoute
public boolean addStaticRoute(IPAddress ipAddress, IPAddress subnetMask, IPAddress nextHop, String portName, int adminDistance) Information provided by the PKI file:
\brief Adds a static route. \param ipAddress, the network address. \param subnetMas, the network mask. \param nextHop, the next hop address. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param adminDistance, the administrative distance value. \return bool, true if successful, otherwise false.- Specified by:
addStaticRoutein interfaceRoutingProcess- Parameters:
ipAddress- Takes in a parameter of ipAddresssubnetMask- Takes in a parameter of subnetMasknextHop- Takes in a parameter of nextHopportName- Takes in a parameter of portNameadminDistance- Takes in a parameter of adminDistance- Returns:
- boolean Returns a boolean
-
removeStaticRoute
public boolean removeStaticRoute(IPAddress ipAddress, IPAddress subnetMask, IPAddress nextHop, String portName, int adminDistance) Information provided by the PKI file:
\brief Removes the specified static route. \param ipAddress, the network address. \param subnetMas, the network mask. \param nextHop, the next hop address. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param adminDistance, the administrative distance value. \return bool, true if successful, otherwise false.- Specified by:
removeStaticRoutein interfaceRoutingProcess- Parameters:
ipAddress- Takes in a parameter of ipAddresssubnetMask- Takes in a parameter of subnetMasknextHop- Takes in a parameter of nextHopportName- Takes in a parameter of portNameadminDistance- Takes in a parameter of adminDistance- Returns:
- boolean Returns a boolean
-
getStaticRouteCount
public int getStaticRouteCount()Information provided by the PKI file:
\brief Returns the number of static routes. \return int, the number of static routes.- Specified by:
getStaticRouteCountin interfaceRoutingProcess- Returns:
- int Returns a int
-
getStaticRouteAt
Information provided by the PKI file:
\brief Returns the static route at the specified index. \param index, the index of the static route of interest. \return StaticRoute, the StaticRoute object at the specified index.- Specified by:
getStaticRouteAtin interfaceRoutingProcess- Parameters:
index- Takes in a parameter of index- Returns:
- StaticRoute Returns a StaticRoute
-
getRoutingTable
Information provided by the PKI file:
\brief Returns the routing table. \return RoutingTable, the RoutingTable object.- Specified by:
getRoutingTablein interfaceRoutingProcess- Returns:
- RoutingTable Returns a RoutingTable
-